<template>
  <div class="container">
    <div class="container_left">
        <div class="left_top">
            //<span>总销售额</span>//
            <p>￥129387</p>
        </div>
        <div class="left_center">
            <div class="goods_number">
                <p>商品种类分析</p>
            </div>
            <EgoodsKind/>
        </div>
        <div class="left_bottom">
            <div class="goods_sale">
                <p>销售额趋势</p>
            </div>
            <EgoodsSale/>
        </div>
    </div>
    <div class="container_center">
        <div class="mapdata">
                <p>地图展示</p>
            </div>
            <Map/>
    </div>
    <div class="container_right">
        <div class="right_top">
           
        </div>
        <div class="right_bottom"></div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import EgoodsKind from './EgoodsKind.vue';
import EgoodsSale from './EgoodsSale.vue';
import Egoods from './Egoods.vue';
import Map from './Map.vue';
</script>

<style lang="scss" scoped>
.container {
    display: flex;
    height: 93%;
    .container_left{
        flex:2;
        // border-right: 1px solid #ccc;
        display: flex;
        flex-flow: column;
        .left_top {
            flex: 1;
            box-shadow:0 2px 4px 0 rgba(0,0,0,0.2);
            margin: 0 17px;
            border-radius: 15px;
            text-align: center;
            font-size: 18px;
            padding: 15px;
            span {
                padding: 0 15px;
                color: #333;
            }
            p {
                font-size: 28px;
                margin-top: 25px;
            }
        }
        .left_center {
            flex: 2;
            box-shadow:0 2px 4px 0 rgba(0,0,0,0.2);
            margin: 10px 15px;
            border-radius: 15px;
            .goods_number {
                padding-left: 15px;
                p {
                    line-height: 30px;
                }
            }
        }
        .left_bottom {
            flex: 2;
            box-shadow:0 2px 4px 0 rgba(0,0,0,0.2);
            margin: 0 17px;
            border-radius: 15px;
            padding-left: 10px;
            .goods_sale {
                padding-left: 15px;
                p {
                    line-height: 30px;
                }
            }
        }
    }
    .container_center {
        flex:3;
        box-shadow:0 2px 4px 0 rgba(0,0,0,0.2);
        margin: 0px 10px;
        border-radius: 15px;
        .mapdata {
            padding-top: 20px;
            text-align: center;
            p{
                line-height: 30px;
                font-size: 20px;
                color: #999;
            }
        }
    }
    .container_right {
        flex:2;
        display: flex;
        flex-flow: column;
        .right_top {
            flex: 1;
            box-shadow:0 2px 4px 0 rgba(0,0,0,0.2);
            margin: 5px 17px;
            border-radius: 15px;
        }
        .right_bottom {
            flex: 1;
            box-shadow:0 2px 4px 0 rgba(0,0,0,0.2);
            margin: 5px 10px;
            border-radius: 15px;
        }
    }
}
</style> 